package com.nlp.visualization.service;

import java.io.File;
import java.io.IOException;
import java.util.List;

/**
 * @author LXM
 * @Title: ICrawlerService
 * @Description: 爬虫服务接口
 * @date 2018/3/14下午12:41
 */
public interface ICrawlerService {


    /**
     * 爬下网页，以文件的形式持久化
     *
     * @param URLs
     * @return
     */
    List<File> crawlAsFiles(String... URLs) throws Exception;

    /**
     * 爬下网页，将smartContent作为字符串传递
     *
     * @param URLs
     * @return
     */
    List<String> crawlContentAsStrings(String... URLs);

}
